<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>纠错</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <!-- <link rel="shortcut icon" href="http://favicon.ico"> -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">

    <!--<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">-->

    <!-- 固定的css 和 common.js 的引用    -->
    <link rel="stylesheet" href="https://gitee.com/huaflower/CommonFile/raw/master/css/sm.min.css">
    <link rel="stylesheet" href="https://gitee.com/huaflower/CommonFile/raw/master/css/sm-extend.min.css">
    <script type="text/javascript" src="https://gitee.com/huaflower/honeybee-commonfile/raw/master/common/common/common.js"></script>
    
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
		<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
		<script type="text/javascript" src="https://gitee.com/huaflower/honeybee-commonfile/raw/master/js/js/vconsole.min.js"></script>
		<script>
			var vConsole = new VConsole();
		</script>
    
<style type="text/css">
  /*css 的样式都放在这里*/
    /*纠错提示*/
 	#jiucuo_tishi{
 		text-align: center;
 		margin-top: 20px;
 		margin-bottom: 20px;
 	}
 	/*纠错类型*/
  	#jiucuo_leixing .jiucuo{
  		border: solid 1px gainsboro;
  		
  		padding-top: 10px;
  		padding-bottom: 10px;
  		padding-left: 15px;
  		padding-right: 15px;
  		margin-bottom: 6px;
  	}
  	#jiucuo_leixing .duigou{
  		color: white;
  		float: right;
  		display: none;
  	}
  	/*纠错描述*/
  	#jiucuo_miaoshu textarea{
  		padding-top: 0.5rem;
  		padding-bottom: 0.5rem;
  		padding-left: 0.5rem;
  		padding-right: 0.5rem;  		
  	}
  	/*定义大小，边框*/
  	#jiucuo_leixing .jiucuo,#jiucuo_miaoshu textarea,#tishiceng{
  		width: 94%;
  		margin-left: 3%;
  	}
  	#jiucuo_beijing{
  		background: white;
  	}
</style>


</head>
<body>
<div class="page-group">
    <div class="page page-current" id="jiucuo_beijing">
       
        <!-- html代码内容区域 -->
    	<div id="">
    		<div id="jiucuo_tishi">
    			
    		</div>
    		<div id="jiucuo_leixing">
    			<!--<div id="jiucuo_leixing_one" class="jiucuo" onclick="jiucuo_leixing_onclick(this)">
    				<span class="jiucuo_leixing_span">
    					题干错误
    				</span>
    				<span class="duigou">√</span>
    			</div>
    			<div id="jiucuo_leixing_two" class="jiucuo" onclick="jiucuo_leixing_onclick(this)">
    				<span class="jiucuo_leixing_span">
    					选项错误
    				</span>
    				<span class="duigou">√</span>
    			</div>
    			<div id="jiucuo_leixing_three" class="jiucuo" onclick="jiucuo_leixing_onclick(this)">
    				<span class="jiucuo_leixing_span">
    					答题错误
    				</span>
    				<span class="duigou">√</span>
    			</div>
    			<div id="jiucuo_leixing_four" class="jiucuo" onclick="jiucuo_leixing_onclick(this)">
    				<span class="jiucuo_leixing_span">
    					解析错误
    				</span>
    				<span class="duigou">√</span>
    			</div>-->
    		</div>
    		<div id="jiucuo_miaoshu" >
    			<textarea id="jiucuo_miaoshu_textarea" rows="4" placeholder=""></textarea>
    		</div>
    	</div>
    	
    	<!--临时提交，需删除-->
    	<!-- <div >
    		<input type="button" name="" id="" value="提交" onclick="jiucuo_tijiao()" />
    	</div> -->
    	

    </div>
</div>





<!-- 固定的js引用，所有的jQuery 要用 $$ 表示 -->
<script type="text/javascript" src="https://gitee.com/huaflower/honeybee-commonfile/raw/master/js/jquery-1.11.1.min.js"></script>
<!-- 这一行代码是为了 避免js冲突 -->
<script type="text/javascript">var $$ =jQuery.noConflict();</script>
<script type='text/javascript' src='https://gitee.com/huaflower/honeybee-commonfile/raw/master/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='https://gitee.com/huaflower/honeybee-commonfile/raw/master/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='https://gitee.com/huaflower/honeybee-commonfile/raw/master/js/sm-extend.min.js' charset='utf-8'></script>


<script type="text/javascript">

	
//	获取接口数据
	function getParams(data){
// 		data需要转成json调用 ，函数urlParamParseJson();
	    var jsonData = urlParamParseJson(data);
	    if(isNotNull(jsonData)){
	    	var params = {
	    	}
	   		//user_id:jsonData.id
		net_request('get','api/v1/question_errors/'+jsonData.cid,params,successCallBack,errorCallBack);
	    }
	  	
	}
//	成功的回调函数
  	function successCallBack(data){	
		console.log(data);
      	if(isNotNull(data)){
	        if(data.success==true){
	         	var content = '\
	          			<div id="jiucuo_leixing" class="jiucuo">\
    						<span class="jiucuo_leixing_span">'+data.data.error_type+'</span>\
    						<span class="duigou">√</span>\
    					</div>\
    				';
	          	$$("#jiucuo_leixing").html(content);
				
				$$("#jiucuo_miaoshu_textarea").val(data.data.error_description);
	        }
	    }
 	}
  // 失败的回调函数
  function errorCallBack(data){
    console.log(data);
  }

// 	初始化区域
   	$$(function () {  
    	$.init();
   	});

    
</script>
</body>
</html>